package com.rainng.coursesystem.repository;


import com.rainng.coursesystem.model.HomeworkItem;
import com.rainng.coursesystem.model.MutualItem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

@Repository
public interface MutualRepository extends JpaRepository<MutualItem, Long> {

    MutualItem findByStudentHomeworkIdAndAndMutualName(UUID studentHomeworkId,String mutualName);

    List<MutualItem> findAllByStudentHomeworkId(UUID studentHomeworkId);

    List<MutualItem> findAllByMutualNameAndHomeworkId(String userName,UUID homeworkId);
}
